//
//  CustomRelay.swift
//  SwiftProject
//
//  Created by qindong on 2021/3/25.
//

import UIKit

class CustomRelay: NSObject {
    static let manager = CustomRelay()
    private override init() {}
    // 登录成功观察序列
    var loginSuccessPublishRelay : PublishRelay<Bool> = PublishRelay()
    // 退出登录观察序列
    var logoutSuccessPublishRelay : PublishRelay<Bool> = PublishRelay()
    // 城市选择观察序列
    var selectCityPublishRelay : PublishRelay<Bool> = PublishRelay()
    // 定位完成观察序列
    var locationCompletePublishRelay : PublishRelay<Bool> = PublishRelay()
    // 点击tabbar观察序列
    var tabbarClickBehaviorRelay : BehaviorRelay<Int> = BehaviorRelay<Int>(value: 0)
    // 点击状态栏观察序列
    var statusBarClickPublishRelay : PublishRelay<Bool> = PublishRelay()
    
    // 动态tabbar
    var tabbarStatusBehaviorRelay : PublishRelay<Bool> = PublishRelay()

}
